<?php
/**
 * 取消认证/认证到期
 */
use Doraemon\tools\Log;
use Doraemon\service\DesignerInfoLib\OperateInfoService as sOperateInfo;
use Doraemon\service\DesignerService\WholeHouse as sWholeHouse;

class CancelAuthAction extends ActionPlugin {

    public function main() {
        Log::info('设计师取消认证接收到事件信息', $this->messageBody);
        $message = $this->messageBody;
        $uid = $this->messageBody['data']['uid'];
        // 更新设计师信息库中的认证状态为取消认证
        sOperateInfo::cancelAuth($uid);
        Log::info('设计师取消认证接收到的事件', compact('uid', 'message'));
        $this->setSuccess();
    }
}